

/**
 * @author Carlos
 * @version 1.0
 * @created 09-oct-2013 05:23:47 p.m.
 */
using System.Xml;
using Imaginarium.XML;
namespace Imaginarium.effect
{
    public class Effect
    {

        public HPMPModifier HPMPModifier { get; set; }
        public KindState kind { get; set; }
        public SpecialState removeSpecialState { get; set; }

        public Effect()
        {

        }
        public Effect(XmlElement element)
        {
            this.HPMPModifier = new HPMPModifier(XmlHelper.getXmlElementByTagname(element,XmlParameters.HPMP_MODIFIER));
            this.kind = (KindState)XmlHelper.getIntByTagname(element,XmlParameters.KIND_STATE) ;
        }

        public override string ToString()
        {
            string ans = "";
            ans += "HPMPModifier: " + HPMPModifier.ToString() + "\n";
            ans += "KindState: " + kind.ToString() + "\n";
            ans += "removeSpecialState: " + removeSpecialState.ToString() + "\n";
            return ans;
        }
    }
}